package com.gx.project.service;

import com.gx.project.base.domain.BaseDomain;
import com.gx.project.base.service.AbstractBaseService;
import com.gx.project.po.Goods;
import com.gx.project.domain.GoodsDomain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author gx
 * @description
 */
@Service("goodsService")
public class GoodsServiceImpl extends AbstractBaseService<Goods, Long> implements GoodsService {


    @Autowired
    private GoodsDomain goodsDomain;



    @Override
    @Transactional
    public Boolean saveOrUpdate(Goods goods) {
        return goodsDomain.save(goods);
    }

    @Override
    protected BaseDomain<Goods, Long> getBaseDomain() {
        return goodsDomain;
    }
}
